C - - : A Portable Assembly
نویسندگان
چکیده
Of late it has become very common for research compilers to emit C as their target code, relying on a C compiler to generate machine code. In eeect, C is being used as a portable compiler target language. It ooers a simple and eeective way of avoiding the need to re-implement eeective register allocation, instruction selection, and instruction scheduling, and so on, all for a variety of target architectures. The trouble is that C was designed as a programming language not as a compiler target language, and is not very suitable for the latter purpose. The obvious thing to do is to deene a language that is designed as a portable target language. This paper describes C-, a portable compiler target language, or assem-bler. C-has to strike a balance between being high-level enough to allow the back end a fair crack of the whip, while being low level enough to give the front end the control it needs. It is not clear that a path exists between these two rocks; the ghost of UNCOL lurks ominously in the shadows 6]. Yet the increasing popularity of C as a compiler target language (despite its unsuitability) suggests strong demand, and provides an existence proof that something useful can be done.
منابع مشابه
Design and fabrication of portable motion recorder: comparing lumbar kinematics in workers with and without low back pain in assembly line of a car manufacturing industry
Introduction: Workers in car manufacturing industry are at risk of a high prevalence of musculoskeletal disorders, especially low back pain. Therefore, in the present study aimed to design and fabricate a portable device to evaluate the low back kinematics and to compare these variables in workers with and without low back pain (LBP) in assembly lines of an automotive industry. Material and Me...
متن کاملC--: A Portable Assembly Language that Supports Garbage Collection
For a compiler writer, generating good machine code for a variety of platforms is hard work. One might try to reuse a retargetable code generator, but code generators are complex and difficult to use, and they limit one’s choice of implementation language. One might try to use C as a portable assembly language, but C limits the compiler writer’s flexibility and the performance of the resulting ...
متن کاملQuantum Chemical Investigations on C14C10-Branched-Chain Glucoside Isomers Towards Understanding Self-Assembly
Density Functional Theory (DFT) calculations have been carried out using a Polarizable Continuum Model (PCM) in an attempt to investigate the electro-molecular properties of branched-chain glucoside (C14C10-D-glucoside) isomers. The results showed that αconfiguration of pyranoside form is thermodynamically the most stable, while the solution should contain much more β...
متن کاملPAF: A portable assembly language∗
A portable assembly language provides access to machine-level features like memory addresses, machine words, code addresses, and modulo arithmetics, like assembly language, but abstracts away differences between architectures like the assembly language syntax, instruction encoding, register set size, and addressing modes. Forth already satisfies a number of the characteristics of a portable ass...
متن کاملPortable Multithreading-The Signal Stack Trick for User-Space Thread Creation
This paper describes a pragmatic but portable fallback approach for creating and dispatching between the machine contexts of multiple threads of execution on Unix systems that lack a dedicated user-space context switching facility. Such a fallback approach for implementing machine contexts is a vital part of a user-space multithreading environment, if it has to achieve maximum portability acros...
متن کاملThe Implementation and Analysis of the ECDSA on the Motorola StarCore SC140 DSP Primarily Targeting Portable Devices
The viability of the Elliptic Curve Digital Signature Algorithm (ECDSA) on portable devices is important due to the growing wireless communications industry, which has inherent insecurities. The StarCore SC140 DSP (SC140) targets portable devices, and therefore is a prime candidate to study the viability of the ECDSA on such devices. The ECDSA was implemented on the SC140 using a Koblitz curve ...
متن کامل